/*
 * Copyright 2009 BioTeam Inc
 * 
 * Licensed under License GNU LESSER GENERAL PUBLIC LICENSE version 3.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.gnu.org/copyleft/lesser.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package net.bioteam.appweb.ws.client.program;

import java.lang.reflect.Method;

import junit.framework.TestCase;
import net.bioteam.appweb.TestConfig;
import net.bioteam.appweb.model.Program;
import net.bioteam.appweb.model.ProgramBuilder;
import net.bioteam.appweb.submit.ProgramValueBean;
import net.bioteam.appweb.user.User;
import net.bioteam.appweb.ws.WsClient;

public class Emboss extends TestCase
{

	public Emboss()
	{
		super();
	}

	public Emboss(String name)
	{
		super(name);
	}

	public WsClient client;

	protected void setUp() throws Exception
	{
		TestConfig.init();
		User user = new User();
		user.setName(TestConfig.username);
		user.setPassword(TestConfig.password);
		client = new WsClient(user, TestConfig.serviceURL, null);
	}

	public static void main(String args[]) throws Exception
	{
		Emboss test = new Emboss();
		test.setUp();
		Method[] mss = test.getClass().getMethods();
		for (Method ms : mss)
		{
			if (ms.getName().startsWith("test"))
			{
				try
				{
					ms.invoke(test);
				} catch (Exception e)
				{
					e.printStackTrace();
				}
				// break;
			}
		}

		// Emboss test = new Emboss("testDiffseq");
		// junit.textui.TestRunner.run(test);
	}

	public void testAntigenic() throws Exception
	{
		String program = "antigenic";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:actb1_fugru");
		bean.setValue("outfile_rformat", "gff");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPreg() throws Exception
	{
		String program = "preg";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:*_rat");
		bean.setValue("pattern", "IA[QWF]A");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPscan() throws Exception
	{
		String program = "pscan";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:opsd_human");
		// bean.setValue("outfile_rformat", "gff");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSigcleave() throws Exception
	{
		String program = "sigcleave";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:ach2_drome");
		// bean.setValue("outfile_rformat", "gff");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDigest() throws Exception
	{
		String program = "digest";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tsw:opsd_human");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEpestfind() throws Exception
	{
		String program = "epestfind";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/exu2_drops.embl");
		bean.setValue("invalid", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testFuzzpro() throws Exception
	{
		String program = "fuzzpro";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:*");
		bean.setValue("pattern", "@fuzzpro.pat");
		bean.setValue("_infile1", "inputs/fuzzpro.pat");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testOddcomp() throws Exception
	{
		String program = "oddcomp";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:*");
		bean.setValue("infile", "inputs/oddcomp.comp");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPatmatdb() throws Exception
	{
		String program = "patmatdb";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:*");
		bean.setValue("motif", "st[ty]s");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPatmatmotifs() throws Exception
	{
		String program = "patmatmotifs";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:opsd_human");
		bean.setValue("full", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPepwindowall() throws Exception
	{
		String program = "pepwindowall";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.msf");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPepwindow() throws Exception
	{
		String program = "pepwindow";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:hba_human");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPepstats() throws Exception
	{
		String program = "pepstats";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:laci_ecoli");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPepinfo() throws Exception
	{
		String program = "pepinfo";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:opsd_human");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testOctanol() throws Exception
	{
		String program = "octanol";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:opsd_human");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMwfilter() throws Exception
	{
		String program = "mwfilter";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/molwts.dat");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMwcontam() throws Exception
	{
		String program = "mwcontam";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("files", "mw1.dat,mw2.dat,mw3.dat");
		bean.setValue("_infile1", "inputs/mw1.dat");
		bean.setValue("_infile2", "inputs/mw2.dat");
		bean.setValue("_infile3", "inputs/mw3.dat");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testIep() throws Exception
	{
		String program = "iep";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:laci_ecoli");
		// bean.setValue("infile", "test.emowse");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEmowse() throws Exception
	{
		String program = "emowse";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:*");
		bean.setValue("infile", "inputs/test.emowse");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testChecktrans() throws Exception
	{
		String program = "checktrans";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/paamir.pep");
		// bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCharge() throws Exception
	{
		String program = "charge";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tsw:hbb_human");
		// bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTmap() throws Exception
	{
		String program = "tmap";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/opsd.msf");
		// bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPepcoil() throws Exception
	{
		String program = "pepcoil";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:gcn4_yeast");
		// bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testHmoment() throws Exception
	{
		String program = "hmoment";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tsw:hbb_human");
		// bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testHelixturnhelix() throws Exception
	{
		String program = "helixturnhelix";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:laci_ecoli");
		// bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testGarnier() throws Exception
	{
		String program = "garnier";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:amic_pseae");
		// bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTranseq() throws Exception
	{
		String program = "transeq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776 ");
		bean.setValue("frame", "R");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testBacktranseq() throws Exception
	{
		String program = "backtranseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:opsd_human");
		bean.setValue("cfile", "Edrome.cut ");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testBacktranambig() throws Exception
	{
		String program = "backtranambig";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:opsd_human");
		// bean.setValue("menu", "v");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTfscan() throws Exception
	{
		String program = "tfscan";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:k00650");
		bean.setValue("menu", "v");
		// bean.setValue("both", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSilent() throws Exception
	{
		String program = "silent";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		bean.setValue("enzymes", "ecori,hindiii");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testRestrict() throws Exception
	{
		String program = "restrict";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		// bean.setValue("seqcomp", "cg");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testRestover() throws Exception
	{
		String program = "restover";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		bean.setValue("seqcomp", "cg");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testRedata() throws Exception
	{
		String program = "redata";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("enzyme", "EcoRII");
		// bean.setValue("origfile", "0");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testRecoder() throws Exception
	{
		String program = "recoder";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		bean.setValue("enzymes", "EcoRII");
		// bean.setValue("origfile", "0");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPalindrome() throws Exception
	{
		String program = "palindrome";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:d00596");
		bean.setValue("minpallen", "15");
		// bean.setValue("origfile", "0");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEtandem() throws Exception
	{
		String program = "etandem";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:L46634");
		bean.setValue("minrepeat", "6");
		// bean.setValue("origfile", "0");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEquicktandem() throws Exception
	{
		String program = "equicktandem";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:L46634");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testProphet() throws Exception
	{
		String program = "prophet";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:h*");
		bean.setValue("infile", "inputs/prophecy.g");
		// bean.setValue("type", "g");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("_infile1", "inputs/eclac.list");
		// bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testProphecy() throws Exception
	{
		String program = "prophecy";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/globins.msf");
		bean.setValue("name", "globins");
		bean.setValue("type", "g");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("_infile1", "inputs/eclac.list");
		// bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testProfit() throws Exception
	{
		String program = "profit";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:*");
		bean.setValue("infile", "inputs/outfile.prophecy");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("_infile1", "inputs/eclac.list");
		// bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testStssearch() throws Exception
	{
		String program = "stssearch";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "@eclac.list");
		bean.setValue("infile", "inputs/lac.primers");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("_infile1", "inputs/eclac.list");
		// bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPrimersearch() throws Exception
	{
		String program = "primersearch";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tembl:z52466");
		bean.setValue("infile", "inputs/primers.txt");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("mismatchpercent", "20");
		// bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEprimer3() throws Exception
	{
		String program = "eprimer3";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65921 ");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("explain", "1");
		// bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testShuffleSeq() throws Exception
	{
		String program = "shuffleseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:L48662");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("shuffle", "2");
		// bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMsbar() throws Exception
	{
		String program = "msbar";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:j01636");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("count", "5");
		bean.setValue("point", "4");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testFuzztran() throws Exception
	{
		String program = "fuzztran";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:Z46957");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("pattern", "RA");
		bean.setValue("frame", "F");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testFuzznuc() throws Exception
	{
		String program = "fuzznuc";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:L46634");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("pattern", "@nucseq.pat");
		bean.setValue("_infile1", "inputs/nucseq.pat");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDreg() throws Exception
	{
		String program = "dreg";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("pattern", "ggtacc");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testWobble() throws Exception
	{
		String program = "wobble";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("minsize", "300");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTcode() throws Exception
	{
		String program = "tcode";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65921");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("minsize", "300");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testShoworf() throws Exception
	{
		String program = "showorf";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("minsize", "300");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPlotorf() throws Exception
	{
		String program = "plotorf";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("minsize", "300");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMarscan() throws Exception
	{
		String program = "marscan";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:u01317");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("minsize", "300");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testGetorf() throws Exception
	{
		String program = "getorf";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:v00294");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("minsize", "300");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNewcpgseek() throws Exception
	{
		String program = "newcpgseek";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:u68037");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("wordsize", "3");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNewcpgreport() throws Exception
	{
		String program = "newcpgreport";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:u68037");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("wordsize", "3");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCpgreport() throws Exception
	{
		String program = "cpgreport";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:u68037");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("wordsize", "3");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCpgplot() throws Exception
	{
		String program = "cpgplot";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:u68037");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("wordsize", "3");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testWordcount() throws Exception
	{
		String program = "wordcount";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:u68037");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("wordsize", "3");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSirna() throws Exception
	{
		String program = "sirna";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("context", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testIsochore() throws Exception
	{
		String program = "isochore";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:AF129756");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("quad", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testFreak() throws Exception
	{
		String program = "freak";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tembl:x65923");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("quad", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDensity() throws Exception
	{
		String program = "density";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tembl:x13776");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("quad", "1");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDan() throws Exception
	{
		String program = "dan";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("word", "2");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCompseq() throws Exception
	{
		String program = "compseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		// bean.setValue("sequence_sbegin", "100");
		bean.setValue("word", "2");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testChaos() throws Exception
	{
		String program = "chaos";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:j01636");
		// bean.setValue("sequence_sbegin", "100");
		// bean.setValue("sequence_send", "120");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testBtwisted() throws Exception
	{
		String program = "btwisted";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:ab000095");
		bean.setValue("sequence_sbegin", "100");
		bean.setValue("sequence_send", "120");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testBanana() throws Exception
	{
		String program = "banana";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:u68037");
		// bean.setValue("sequence_sbegin", "135");
		// bean.setValue("sequence_send", "1292");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("cfile", "Epseae.cut");
		// bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSyco() throws Exception
	{
		String program = "syco";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		bean.setValue("sequence_sbegin", "135");
		bean.setValue("sequence_send", "1292");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		bean.setValue("cfile", "Epseae.cut");
		bean.setValue("plot", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCusp() throws Exception
	{
		String program = "cusp";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		bean.setValue("sequence_sbegin", "135");
		bean.setValue("sequence_send", "1292");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("outfile", "out.txt");
		// bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCodcmp() throws Exception
	{
		String program = "codcmp";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("first", "Eecoli.cut");
		bean.setValue("second", "Ehaein.cut");
		// bean.setValue("seqall_send", "1292");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("outfile", "out.txt");
		// bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testChips() throws Exception
	{
		String program = "chips";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tembl:x13776");
		bean.setValue("seqall_sbegin", "135");
		bean.setValue("seqall_send", "1292");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("outfile", "out.txt");
		// bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCai() throws Exception
	{
		String program = "cai";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "TEMBL:AB009602");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("outfile", "out.txt");
		// bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEinverted() throws Exception
	{
		String program = "einverted";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:d00596");
		bean.setValue("outfile", "out.txt");
		bean.setValue("outseq", "seq.txt");

		// bean.setValue("outfile", "out.txt");
		// bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testWossname() throws Exception
	{
		String program = "wossname";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("search", "restrict");
		bean.setValue("outfile", "doc.txt");
		bean.setValue("html", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	// public void testTfm() throws Exception
	// {
	// String program = "tfm";
	// ProgramBuilder.cache.remove(program);
	// Program p = ProgramBuilder.getProgram(program);
	// ProgramValueBean bean = new ProgramValueBean(p);
	// bean.setValue("program", "wossname");
	// bean.setValue("outfile", "doc.txt");
	// bean.setValue("html", "1");
	// String[] ret = client.runProgram(bean);
	// postJobProcess(ret);
	// }
	public void testInfoseq() throws Exception
	{
		String program = "infoseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	// public void testInfobase() throws Exception
	// {
	// String program="infobase";
	// ProgramBuilder.cache.remove(program);
	// Program p=ProgramBuilder.getProgram(program);
	// ProgramValueBean bean=new ProgramValueBean(p); if
	// (TestConfig.clusterid!=null) {bean.setValue("_cluster",
	// TestConfig.clusterid);}
	// bean.setValue("code", "ABCDGHKMNRSTUVWXY");
	// bean.setValue("outfile", "seq.txt");
	// String[] ret=client.runProgram(bean);
	// postJobProcess(ret);
	// }
	public void testTwofeat() throws Exception
	{
		String program = "twofeat";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		bean.setValue("atype", "polyA_signal");
		bean.setValue("btype", "polyA_site");
		bean.setValue("minrange", "10");
		bean.setValue("maxrange", "50");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCoderet() throws Exception
	{
		String program = "coderet";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("seqall", "tembl:x03487");
		// bean.setValue("sequence_sbegin", "1913");
		// bean.setValue("sequence_send", "1915");
		// bean.setValue("percent", "100");
		// bean.setValue("outseq_osformat", "swiss");
		// bean.setValue("outfile", "cds.list");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testFindkm() throws Exception
	{
		String program = "findkm";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/enztest.data");
		// bean.setValue("sequence_sbegin", "1913");
		// bean.setValue("sequence_send", "1915");
		// bean.setValue("percent", "100");
		// bean.setValue("outseq_osformat", "swiss");
		// bean.setValue("outfile", "cds.list");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testYank() throws Exception
	{
		String program = "yank";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65921");
		bean.setValue("sequence_sbegin", "1913");
		bean.setValue("sequence_send", "1915");
		// bean.setValue("percent", "100");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outfile", "cds.list");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testUnion() throws Exception
	{
		String program = "union";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "@cds.list");
		bean.setValue("_infile1", "inputs/cds.list");
		// bean.setValue("percent", "100");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTrimseq() throws Exception
	{
		String program = "trimseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/untrimmed.seq");
		bean.setValue("window", "2");
		bean.setValue("percent", "100");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTrimest() throws Exception
	{
		String program = "trimest";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		// bean.setValue("size", "50000");
		// bean.setValue("overlap", "3000");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSplitter() throws Exception
	{
		String program = "splitter";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:BA000025");
		bean.setValue("size", "50000");
		bean.setValue("overlap", "3000");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSkipseq() throws Exception
	{
		String program = "skipseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "@eclac.list");
		bean.setValue("_infile1", "inputs/eclac.list");
		bean.setValue("skip", "2");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSkipredundant() throws Exception
	{
		String program = "skipredundant";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.fasta");
		bean.setValue("threshold", "80");
		bean.setValue("keepredundant", "1");
		// bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSizeseq() throws Exception
	{
		String program = "sizeseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.fasta");
		// bean.setValue("feature", "1");
		bean.setValue("outseq_osformat", "swiss");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSeqretsplit() throws Exception
	{
		String program = "seqretsplit";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:m1190*");
		// bean.setValue("feature", "1");
		// bean.setValue("outseq_osformat", "gcg");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSeqret() throws Exception
	{
		String program = "seqret";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:ab*");
		bean.setValue("feature", "1");
		bean.setValue("outseq_osformat", "gcg");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testRevseq() throws Exception
	{
		String program = "revseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPasteseq() throws Exception
	{
		String program = "pasteseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tsw:amir_pseae");
		bean.setValue("bsequence", "tsw:flav_nossm");

		bean.setValue("outseq", "seq.txt");
		bean.setValue("pos", "67");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNthseq() throws Exception
	{
		String program = "nthseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "@eclac.list");
		bean.setValue("_infile1", "inputs/eclac.list");
		bean.setValue("outseq", "seq.txt");
		bean.setValue("number", "2");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNotseq() throws Exception
	{
		String program = "notseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/globins.fasta");
		bean.setValue("exclude", "myg_phyca,lgb2_luplu");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNotab() throws Exception
	{
		String program = "notab";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/tabfile.txt");
		bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNospace() throws Exception
	{
		String program = "nospace";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/seqspace.txt");
		bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNoreturn() throws Exception
	{
		String program = "noreturn";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/abc.dat");
		bean.setValue("outfile", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMaskseq() throws Exception
	{
		String program = "maskseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/maskseqprot.fasta");
		bean.setValue("outseq", "seq.txt");
		bean.setValue("regions", "inputs/maskseq.range");
		bean.setValue("maskchar", "x");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMaskfeat() throws Exception
	{
		String program = "maskfeat";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:ab000360");
		bean.setValue("outseq", "seq.txt");
		bean.setValue("tolower", "1");
		bean.setValue("sequence_supper", "1");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMaskambigprot() throws Exception
	{
		String program = "maskambigprot";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/ambigprot.fasta");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMaskambignuc() throws Exception
	{
		String program = "maskambignuc";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/ambignuc.fasta");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMakeprotseq() throws Exception
	{
		String program = "makeprotseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("pepstatsfile", "inputs/laci_ecoli.pepstat");
		bean.setValue("amount", "2");
		bean.setValue("length", "150");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMakenucseq() throws Exception
	{
		String program = "makenucseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("codonfile", "Epseae.cut");
		bean.setValue("amount", "2");
		bean.setValue("length", "150");
		bean.setValue("outseq", "seq.txt");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testListor() throws Exception
	{
		String program = "listor";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("firstsequences", "inputs/listorfile1.seq");
		bean.setValue("secondsequences", "inputs/listorfile2.seq");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testFeatreport() throws Exception
	{
		String program = "featreport";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("features", "inputs/paamir.gff");
		bean.setValue("sequence", "inputs/paamir.fasta");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testFeatcopy() throws Exception
	{
		String program = "featcopy";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("features", "inputs/paamir.gff3");
		bean.setValue("outfeat", "featout.txt");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testExtractseq() throws Exception
	{
		String program = "extractseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923 ");
		bean.setValue("regions", "inputs/extractseq.range");
		bean.setValue("outseq", "out.seq");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testExtractfeat() throws Exception
	{
		String program = "extractfeat";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65921");
		bean.setValue("type", "exon");
		bean.setValue("outseq", "out.seq");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testExtractalign() throws Exception
	{
		String program = "extractalign";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/dna.msf");
		bean.setValue("outseq", "out.seq");
		bean.setValue("regions", "inputs/extractalign.range");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEntret() throws Exception
	{
		String program = "entret";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65923");
		bean.setValue("outfile", "out.entret");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDescseq() throws Exception
	{
		String program = "descseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/plaindna.txt");
		bean.setValue("outseq", "out.seq");
		bean.setValue("name", "myclone123");
		bean.setValue("description", "'This is my clone number 244'");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDegapseq() throws Exception
	{
		String program = "degapseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/dnagap.fasta");
		bean.setValue("outseq", "out.seq");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCutseq() throws Exception
	{
		String program = "cutseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		bean.setValue("from", "10");
		bean.setValue("to", "12");
		bean.setValue("outseq", "out.seq");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testBiosed() throws Exception
	{
		String program = "biosed";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:amir_pseae");
		bean.setValue("target", "PPP");
		bean.setValue("replace", "XXPPPXX");
		bean.setValue("outseq", "amir_pseae.pep");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testAligncopypair() throws Exception
	{
		String program = "aligncopypair";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.msf");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testAligncopy() throws Exception
	{
		String program = "aligncopy";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.msf");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTextsearch() throws Exception
	{
		String program = "textsearch";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:*");
		bean.setValue("pattern", "lactose");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSixpack() throws Exception
	{
		String program = "sixpack";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testShowseq() throws Exception
	{
		String program = "showseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		bean.setValue("sequence_sbegin", "1");
		bean.setValue("sequence_send", "120");
		bean.setValue("things", "b,s,t,c");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testShowfeat() throws Exception
	{
		String program = "showfeat";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x65921");
		bean.setValue("matchtype", "CDS");
		bean.setValue("width", "0");
		bean.setValue("id", "0");
		bean.setValue("description", "0");
		bean.setValue("scale", "0");
		bean.setValue("position", "1");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testRemap() throws Exception
	{
		String program = "remap";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:j01636");
		bean.setValue("sequence_sbegin", "1");
		bean.setValue("sequence_send", "60");
		bean.setValue("translation", "0");
		bean.setValue("enzymes", "taqi,bsu6i,acii,bsski");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPrettyseq() throws Exception
	{
		String program = "prettyseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tembl:x13776");
		bean.setValue("range", "inputs/prettyseq.range");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPepwheel() throws Exception
	{
		String program = "pepwheel";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:hbb_human");
		bean.setValue("sequence_send", "30");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPepnet() throws Exception
	{
		String program = "pepnet";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "tsw:gcn4_yeast");
		bean.setValue("sequence_sbegin", "253");
		bean.setValue("sequence_send", "274");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testLindna() throws Exception
	{
		String program = "lindna";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/data.linp");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCirdna() throws Exception
	{
		String program = "cirdna";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/data.cirp");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testAbiview() throws Exception
	{
		String program = "abiview";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("infile", "inputs/abiview.abi");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testTranalign() throws Exception
	{
		String program = "tranalign";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "inputs/tranalign.seq");
		bean.setValue("bsequence", "inputs/tranalign.pep");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testShowalign() throws Exception
	{
		String program = "showalign";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/globins.msf");
		bean.setValue("html", "1");
		bean.setValue("consensus", "0");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPrettyplot() throws Exception
	{
		String program = "prettyplot";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.msf");
		bean.setValue("resbreak", "10");
		bean.setValue("boxcol", "1");
		bean.setValue("consensus", "1");
		bean.setValue("plurality", "3");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPlotcon() throws Exception
	{
		String program = "plotcon";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.msf");
		bean.setValue("sequences_sformat", "msf");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testInfoalign() throws Exception
	{
		String program = "infoalign";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "@eclac.list");
		bean.setValue("_infile1", "inputs/eclac.list");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEdialign() throws Exception
	{
		String program = "edialign";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.fasta");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testWordmatch() throws Exception
	{
		String program = "wordmatch";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tsw:hba_human");
		bean.setValue("bsequence", "tsw:hbb_human");
		;
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testWordfinder() throws Exception
	{
		String program = "wordfinder";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("bsequence", "@eclac.list");
		bean.setValue("_infile1", "inputs/eclac.list");
		bean.setValue("asequence", "tembl:j01636");
		bean.setValue("wordsize", "50");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testWater() throws Exception
	{
		String program = "water";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tsw:hba_human");
		bean.setValue("bsequence", "tsw:hbb_human");
		;
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSupermatcher() throws Exception
	{
		String program = "supermatcher";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "@eclac.list");
		bean.setValue("_infile1", "inputs/eclac.list");
		bean.setValue("bsequence", "tembl:j01636");
		bean.setValue("wordsize", "50");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testStretcher() throws Exception
	{
		String program = "stretcher";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tsw:hba_human");
		bean.setValue("bsequence", "tsw:hbb_human");
		;
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testSeqmatchall() throws Exception
	{
		String program = "seqmatchall";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "@eclac.list");
		bean.setValue("_infile1", "inputs/eclac.list");
		bean.setValue("wordsize", "15");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testPolydot() throws Exception
	{
		String program = "polydot";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequences", "inputs/globins.fasta");
		bean.setValue("graph_gtitle", "Polydot of globins.fasta");
		bean.setValue("graph", "png");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testNeedle() throws Exception
	{
		String program = "needle";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tsw:hba_human");
		bean.setValue("bsequence", "tsw:hbb_human");
		;
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMerger() throws Exception
	{
		String program = "merger";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tembl:v00295");
		bean.setValue("bsequence", "tembl:x51872");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMegamerger() throws Exception
	{
		String program = "megamerger";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tembl:v00295");
		bean.setValue("bsequence", "tembl:v00296");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testMatcher() throws Exception
	{
		String program = "matcher";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tsw:hba_human");
		bean.setValue("bsequence", "tsw:hbb_human");
		;
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testEst2genome() throws Exception
	{
		String program = "est2genome";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("estsequence", "tembl:h45989");
		bean.setValue("genomesequence", "tembl:z69719");
		;
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDottup() throws Exception
	{
		String program = "dottup";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tembl:j01636");
		bean.setValue("bsequence", "tembl:v00294");
		bean.setValue("wordsize", "6");
		bean.setValue("graph_gtitle", "v00294 vs j01636");
		// bean.setValue("graph_gtitle", "test");
		bean.setValue("graph", "png");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDotpath() throws Exception
	{
		String program = "dotpath";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tembl:AF129756");
		bean.setValue("bsequence", "tembl:BA000025");
		bean.setValue("wordsize", "20");
		bean.setValue("overlaps", "1");
		bean.setValue("graph", "png");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDotmatcher() throws Exception
	{
		String program = "dotmatcher";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tsw:hba_human");
		bean.setValue("bsequence", "tsw:hbb_human");
		bean.setValue("graph", "png");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testDiffseq() throws Exception
	{
		String program = "diffseq";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("asequence", "tembl:x65923");
		bean.setValue("bsequence", "tembl:ay411291");
		// bean.setValue("aoutfeat_offormat", "gff");
		// bean.setValue("boutfeat_offormat", "gff");

		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testConsambig() throws Exception
	{
		String program = "consambig";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/dna.msf");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	public void testCons() throws Exception
	{
		String program = "cons";
		ProgramBuilder.cache.remove(program);
		Program p = ProgramBuilder.getProgram(program);
		ProgramValueBean bean = new ProgramValueBean(p);
		if (TestConfig.clusterid != null)
		{
			bean.setValue("_cluster", TestConfig.clusterid);
		}
		bean.setValue("sequence", "inputs/dna.msf");
		String[] ret = client.runProgram(bean);
		postJobProcess(ret);
	}

	protected void postJobProcess(String ret[])
	{
		String jobid = ret[0];
		TestConfig.logger.info("job id is " + jobid);
		TestConfig.logger.info("cmdline is " + ret[2]);
	}

}
